import { lazy } from 'react';

const routers = [
  {
    path: '/login',
    title: '登录',
    parent: false,
    nowIndex: 1,
    components: lazy(() => import('../modules/Login'))
  },
  {
    path: '/overview',
    title: '数据概览',
    parent: true,
    icon: 'icon-navicon-xtgl',
    nowIndex: 2,
    components: lazy(() => import('../modules/Overview')),
  },
  {
    path: '/system',
    title: '系统管理',
    parent: true,
    icon: 'icon-navicon-xtgl',
    nowIndex: 3,
    components: lazy(() => import('../modules/System')),
    children: [
      {
        path: '/system/user',
        title: '用户管理',
        parent: true,
        nowIndex: 5,
        components: lazy(() => import('../modules/System/components/userList')),
      },
      {
        path: '/system/role',
        title: '角色管理',
        parent: true,
        nowIndex: 6,
        components: lazy(() => import('../modules/System/components/roleList')),
      }
    ]
  }
];




export default routers;
